<template>
  <div style="background-color: #0b1f42">
    <div class="container">
      <div class="txt">
        {{ comtitle }}
      </div>
      <div class="details">
        <!-- <span class="details">（查看详细）</span> -->
        <span>注:数据截至2025.04.23</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "headline",
  props: {
    comtitle: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang="less" scoped>
.container {
  width: 100%;
  height: 4vh;
  font-size: 8px;
  color: #fff;
  box-sizing: border-box;
  padding: 0.2vw 0.5vw 0 0.5vw;
  color: rgb(0, 255, 255);
  margin-bottom: 0.5vh;
  font-size: 1rem;
  line-height: 3vh;

  .txt {
    font-weight: 700;
    float: left;
    margin-left: 0.5vw;
  }

  .details {
    float: right;
    cursor: pointer;
    font-size: 0.7rem;
    color: #5a677f;
  }
}

.container::before {
  content: "";
  display: inline-block;
  width: 0.2vw;
  height: 3vh;
  float: left;
  background-color: rgb(90, 128, 255);
}
</style>
